package com.siyuanren.gcocp.service;


import com.siyuanren.gcocp.dto.wx.WxUserDTO;
import com.siyuanren.gcocp.entity.WxUser;
import me.chanjar.weixin.mp.bean.result.WxMpUser;

/**
 * @author PVer
 */
public interface WxUserService {

    WxUser getById(int id);

    /**
     * @param openid
     * @return
     */
    WxUser getByOpenid(String openid);

    int insert(WxUser entity);

    WxUser insertWxMpUser(WxMpUser user);

    int update(WxUser entity);

    int update(WxUser entity,WxMpUser user);


}
